<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" href="resources/css/login_bar.css" type="text/css" />
<link rel="stylesheet" href="resources/css/default.css" type="text/css" />
<script language="javascript" type="text/javascript" src="javascripts/tools.js"></script>
<script language="javascript" type="text/javascript">
function a()
{
	var ele = document.getElementById("div");	
	ele.innerHTML = '<img id="img" src="resources/images/bacelona.png">';
	
	var imgEle = document.getElementById("img");
	alert(imgEle.width);
}
</script>
</head>
<body id="body" onLoad="a()">
<div id="div"></div>
</body>
</html>